//
//  GoodsDetArrorCell.m
//  NormalFramework
//
//  Created by beisheng03 on 2018/3/17.
//  Copyright © 2018年 beisheng. All rights reserved.
//

#import "GoodsDetArrorCell.h"

@interface GoodsDetArrorCell ()

@property (weak, nonatomic) IBOutlet UIView *lineView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomMargin;
@property (weak, nonatomic) IBOutlet UILabel *leftLabel;
@end

@implementation GoodsDetArrorCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.contentView.backgroundColor = [UIColor whiteColor];
    
    self.bottomMargin.constant = 0;
    
    self.leftLabel.font = BigTitleFont;
    
    self.lineView.backgroundColor = lineGray;
    // Initialization code
}

- (void)setIndex:(NSIndexPath *)index{
    
    _index = index;
    
    if (index.row == 0) {
        self.lineView.hidden = NO;
        self.leftLabel.text = @"用户评论";
    } else {
        self.lineView.hidden = YES;
        self.leftLabel.text = @"往期疯抢";

    }
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
